<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:p="http://primefaces.org/ui"
	xmlns:hmrTable="http://java.sun.com/jsf/composite/table"
	xmlns:hmrList="http://java.sun.com/jsf/composite/list">

	<hmrTable:exerciseTable id="execiseTable" handler="#{modalityBean.exerciseTable}" editable="#{true}"  />

	<p:outputPanel layout="block" rendered="#{modalityBean.modality != null}" style="position:absolute;bottom:0px;left:0px">
		<p:commandButton value="#{msgs.Save}"	icon="ui-icon-disk" 	process="execiseTable"	oncomplete="$('#tabModality\\:saveButton').click()"		rendered="#{modalityBean.modality.id != null}" />
		<p:commandButton value="#{msgs.Create}"	icon="ui-icon-document"	process="execiseTable"	oncomplete="$('#tabModality\\:createButton').click()"	rendered="#{modalityBean.modality.id == null}" />
		<p:spacer width="50px" height="1px"/>	
		<p:commandButton  value="#{msgs.Cancel}" update=":growl,:content"	action="#{modalityBean.cancelChange}"	icon="ui-icon-cancel"/>
	</p:outputPanel>
</html>